﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddCourse.aspx.cs" Inherits="CourseManagement_AddCourse" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../Css/ys.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="../My97DatePicker/WdatePicker.js"></script>
      <script language="javascript" type="text/javascript">
          function openModelWin(sid, name,url) {
         var trainId = document.getElementById("<%=hidTrainClassIdList.UniqueID%>");
            trainId.value=sid;
            var trainName = document.getElementById("<%=txtTrainClassName.UniqueID%>");
            trainName.value=name;
            }
            function openwin(url) {

                window.open(url, 'newwindow', 'toolbar=no,scrollbars=yes,resizable=no,top=20,left=300,width=900,height=600')
                
                
            }        
        </script>

    <style type="text/css">
        #TextArea1
        {
            width: 326px;
        }
        #txtcontent
        {
            width: 316px;
        }
        #txtdesc
        {
            width: 313px;
        }
    </style>

</head>
<body>
    <form id="form" runat="server">
    <div class="zt mainCenter">
        <div class="contentBody">
        <div class="title">
        课程管理-->添加课程信息
        </div>
            <table style="width:100%;color:#336699; height: 255px;"  class="ta1">
            <tr><td class="ta2 tag" >隶属学校</td>
            <td class="ta2">
                <asp:DropDownList ID="dlschool" runat="server" DataTextField="VS_name" 
               DataValueField="ID" CssClass="inp2" Height="19px" Width="180px">
                </asp:DropDownList>
            </td>
            </tr>
            <tr>
                    <td class="ta2 tag">
                        培训班：
                    </td>
                    <td class="ta2">
                        <asp:TextBox ID="txtTrainClassName" runat="server" CssClass="inp1" 
                            ReadOnly="true" Width="180px"></asp:TextBox>
                         <a href="#" onclick="openwin('SearchTrainList.aspx')"><img src="../images/wb_15.jpg" border="0" /></a>
                        <input id="hidTrainClassIdList" runat="server" style="width: 10px" type="hidden" value="0" />
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Text="*"  ControlToValidate="txtTrainClassName"  ErrorMessage="培训班不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
                    </td>
                </tr>
             <tr>
                    <td class="ta2 tag" >
                        课程名：
                    </td>
                    <td class="ta2"  >
                        <asp:TextBox ID="txtCourseName" runat="server" CssClass="inp1" Width="180px"></asp:TextBox>
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Text="*"  ControlToValidate="txtCourseName"  ErrorMessage="课程名不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
                        
                    </td>
                </tr>
                
                <tr>
                    <td class="ta2 tag">
                        课程特色：
                    </td>
                    <td  class="ta2" >
                                          <asp:TextBox ID="txtdesc" runat="server" TextMode="MultiLine" Height="206px" Width="297px" MaxLength="2000"  CssClass="inp3"></asp:TextBox>
 
                    </td>
                </tr>
                
                <tr>
                    <td class="ta2 tag">
                        课程内容：
                    </td>
                    <td  class="ta2">
                                                              <asp:TextBox ID="txtcontent" runat="server" TextMode="MultiLine" Height="206px" Width="297px" MaxLength="2000"  CssClass="inp3"></asp:TextBox>

 
                    </td>
                </tr>
                
                <tr>
	<td class="ta2 tag"  >
		图片：</td>
	<td class="ta2">
        <asp:FileUpload ID="fuNewsImage" runat="server"  CssClass="inp1"/>
	</td>
                </tr>
                
                <tr>
                    <td class="ta2 tag">
                        试用人群：
                    </td>
                    <td  class="ta2">
                        <asp:TextBox ID="txttagerUser" runat="server" Width="180px"></asp:TextBox>
                    </td>
                </tr>
            </table>
             <asp:Button ID="btnReg" runat="server" Text="添加" CssClass="button"  ValidationGroup="register"
                onclick="btnReg_Click" />&nbsp;&nbsp;<input type="button" onclick="this.form.reset(); " value="重置" class="button"  id="btnReset" runat="server"/><asp:Button 
                ID="Button1" runat="server" Text="返回" CssClass="button" 
                onclick="Button1_Click"/>
            <br />
            <p style="color:Red; text-align:left"><asp:Label ID="Label1" runat="server"   ></asp:Label></p>
             <p style="margin-left:50px"><asp:ValidationSummary ID="validSummary" runat="server"   HeaderText="错误信息" ValidationGroup="register" Height="194px" /> 
        </div>
    </div>
  </form>
</body>
</html>

